package cmd

import (
	"biz_alert/config"
	"biz_alert/pkg/db"
	"github.com/spf13/cobra"
)

var (
	cfgFile string //配置文件
)

var RootCmd = &cobra.Command{
	Use:   "bizAlert",
	Short: "业务异常告警",
}

func SetupGlobalDB(conf config.Config) error {
	return db.GetGlobalDB(conf.Database)
}
